import { ApiProperty } from "@nestjs/swagger";
import { Article } from "@prisma/client";

export class ArticleEntity implements Article {
    @ApiProperty()
    id: number;
    @ApiProperty()
    title: string;
    @ApiProperty()
    @ApiProperty()
    content: string;
    @ApiProperty()
    excerpt: string;
    @ApiProperty()
    coverImage: string;
    @ApiProperty()
    author: string;
    @ApiProperty()
    categoryId: number;
    @ApiProperty()
    views: number;
    @ApiProperty()
    createdAt: Date;
    @ApiProperty()
    updatedAt: Date;
    @ApiProperty()
    isDeleted: boolean;
    @ApiProperty()
    deletedAt: Date;
}
